package com.xxjqr.rbac.entity.pojo;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.xxjqr.rbac.enums.BusinessStatusEnum;
import com.xxjqr.rbac.enums.OperTypeEnum;
import com.xxjqr.rbac.enums.OperatorTypeEnum;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 丁昌江
 * @since 2021-05-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class TbOperLog extends Model<TbOperLog> {

    private static final long serialVersionUID = 1L;

    private Long id;

    private BusinessStatusEnum status;

    private String operIp;

    private String operAddr;

    private String jsonResult;

    /**
     * 请求url
     */
    private String requestUrl;

    /**
     * 错误消息
     */
    private String errorMsg;

    /**
     * 调用后端接口
     */
    private String method;

    /**
     * 操作人用户名
     */
    private String operName;

    /**
     * 请求方式
     */
    private String requestMethod;

    /**
     * 请求参数
     */
    private String operParam;

    /**
     * 系统模块
     */
    private String title;

    /**
     * 操作类型
     */
    private OperTypeEnum operType;

    /**
     * 操作人类型
     */
    private OperatorTypeEnum operatorType;

    /***
     * 操作时间
     */
    private LocalDateTime createTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
